home *** CD-ROM | disk | FTP | other *** search
- Path: vb.franken.de!volker
- From: volker@vb.franken.de (Volker Barthelmann)
- Subject: Re: Processors
- Newsgroups: comp.sys.amiga.programmer
- References: <1880.6651T550T1538@darwin.topend.com.au> <4024.6651T1376T3@teclink.net>
- X-Newsreader: TIN [AMIGA 1.3 950726BETA PL0]
- Message-ID: <volker.0fxi@vb.franken.de>
- Date: 20 Mar 96 22:38:39 MET
- Organization: home
-
- rad (rad@teclink.net) wrote:
- :
- : First of all the emulated function are VERY rarely called in Imagine. Even if
-
- What do You mean by very rarely and how did You measure it?
-
- : emulation took 10-20 times longer it would be negligible. Second the 68040
- : added special features to make emulation fast and easy. (All operands are
- : fetched for you, you don't need to worry about where the result goes all you
- : need do is compute the result.) The Motorola emulation package (which Amiga
- : uses) runs transcendental functions at the speed equal or better than a
- : 33MHz 68882.
-
- The emulation routine may be fast, but the overhead of exceptions etc. is
- much higher and makes much of a difference.
-
- : 1. The compilers used to develop the two different versions are drastically
- : different. The one used for the pc port was probably developed with 10
- : times the man power and budget as the one for used for the Amiga port. It
- : is safe to assume that pc compiler has gone to great lengths to squeeze
- : that last bit of performance out of the intel CPU. Something the Amiga
- : compiler could only put a modest effort toward.
-
- What compilers were used for the Amiga and PC versions?
- Most Amiga compilers are not made for Amiga only.
-
- : The performance difference you see in the example above is due to pipelining
- : and FPU/Integer parallelization differences between the 68020/881 & the 68040.
- : The emulated functions would probably only account for a percentage point or
- : so. Even optimizing for the 040 while still using transcendental emulation
- : alone would probably be of significant benefit to Imagine.
-
- Are You sure about that?
- If You use the emulated functions on the 040 You can forget about things
- like parallelization or pipeling at all, I guess.
-
- All tests I made showed that usage of emulated FPU instructions can make
- a huge difference.
-
- Volker
-
-